package org.jeecg.modules.music.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.jeecg.common.aspect.annotation.Dict;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

@Data
@TableName("mus_artist")
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value = "mus_artist对象", description = "歌手表")
public class MusArtist implements Serializable {

    private static final long serialVersionUID = 1L;
    /**
     * id
     */
    @TableId(type = IdType.ASSIGN_ID)
    @ApiModelProperty(value = "id")
    private String id;

    @Excel(name = "歌手身份", width = 15,dicCode="music_singer_type")
    @Dict(dicCode = "music_singer_type")
    private String category;

    /**
     * 艺术家姓名
     */
    @Excel(name = "艺术家姓名", width = 15)
    @ApiModelProperty(value = "艺术家姓名")
    private String cname;

    /**
     * 艺术家姓名
     */
    @Excel(name = "外文名字", width = 15)
    @ApiModelProperty(value = "外文名字")
    private String fname;

    /**
     * 艺术家姓名
     */
    @Excel(name = "国籍", width = 15)
    @ApiModelProperty(value = "国籍")
    private String nationality;

    @Excel(name = "出生地", width = 15)
    @ApiModelProperty(value = "出生地")
    private String birthplace;

    /**
     * 头像
     */
    @Excel(name = "头像", width = 15,type = 2)
    private String avatar;

    /**
     * 生日
     */
    @Excel(name = "生日", width = 15, format = "yyyy-MM-dd")
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date birthday;

    @Dict(dicCode = "music_singer_style")
    private String styles;

    @Excel(name = "歌手性别", width = 15,dicCode="music_singer_gender")
    @Dict(dicCode = "music_singer_gender")
    private String singerType;

    @Excel(name = "歌手地区", width = 15,dicCode="music_singer_region")
    @Dict(dicCode = "music_singer_region")
    private String singerRegion;

    private String alias;

    @Excel(name = "基本信息", width = 25)
    @ApiModelProperty(value = "基本信息")
    private String basicInfo;

    @Excel(name = "代表作品", width = 25)
    @ApiModelProperty(value = "代表作品")
    private String mainWorks;

    @Excel(name = "主要成就", width = 25)
    @ApiModelProperty(value = "主要成就")
    private String mainAchievements;

    @Excel(name = "首字母", width = 5)
    @ApiModelProperty(value = "首字母")
    private String initial;

    /**
     * 状态(1：正常  2：冻结 ）
     */
    @Excel(name = "状态", width = 15,dicCode="user_status")
    @Dict(dicCode = "user_status")
    private Integer status;

    /**
     * 删除状态（0，正常，1已删除）
     */
    @Excel(name = "删除状态", width = 15,dicCode="del_flag")
    @TableLogic
    private Integer delFlag;

    @Dict(dicCode = "music_is_enter")
    private Integer isEnter;


    /**
     * 创建人
     */
    private String createBy;

    /**
     * 创建时间
     */
    private Date createTime;

    /**
     * 更新人
     */
    private String updateBy;

    /**
     * 更新时间
     */
    private Date updateTime;

}
